package com.guazi.trackingtest;

import android.hardware.SensorEvent;

/**
 * Created by lqy on 2018/3/21.
 */

public class Utils {
    public static final int TYPE_GYR = 1;
    public static final int TYPE_ACC = 2;
    public static final int TYPE_MAG = 3;
    public static final int TYPE_LINEAR_ACC = 4;

    public static PackData sensorEvent2PackData(SensorEvent event, int type) {
        return new PackData(type, event.timestamp, event.values[0], event.values[1], event.values[2]);
    }
}
